package com.geek.tool;

import com.geek.base.system.bean.SysUser;

public class DataUtil {

    public static SysUser getUser() {
        return (SysUser) HttpWebUtil.getSessionAttribute("sysUser");
    }

    public static String getUserId() {
        SysUser user = (SysUser) HttpWebUtil.getSessionAttribute("sysUser");
        return user == null ? null : user.getUserId();
    }

    public static String getUserName() {
        SysUser user = (SysUser) HttpWebUtil.getSessionAttribute("sysUser");
        return user == null ? null : user.getUserName();
    }
}
